package com.yami.shop.platform.task;

import com.xxl.job.core.handler.annotation.XxlJob;
import com.yami.shop.service.AirdropTaskService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@AllArgsConstructor
public class AirdropTask {

    private final AirdropTaskService airdropTaskService;

    @XxlJob("airdropTask")
    public void airdropTask() {
        log.info("批量空投定时任务开始");
        airdropTaskService.airdropTask(null);
    }


}
